package aop.controller;

import aop.service.UserService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Controller;

/**
 * Author：汤小洋
 * Date：2023-07-04 14:55
 * Description：<描述>
 */
@Controller
@RequiredArgsConstructor
public class UserController {

    private final UserService userService;

    public void login(String username, String password) {
        userService.login(username, password);
    }

    public String logout(){
        return userService.logout();
    }
}
